package com.ruoyi.serviceItem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.serviceItem.domain.IncomeExpenseRecord;
import com.ruoyi.serviceItem.domain.dto.IncomeExpenseDTO;
import com.ruoyi.serviceItem.service.IncomeExpenseRecordService;
import com.ruoyi.serviceItem.mapper.IncomeExpenseRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author Lenovo
* @description 针对表【income_expense_record(收支记录表)】的数据库操作Service实现
* @createDate 2025-03-20 20:39:23
*/
@Service
public class IncomeExpenseRecordServiceImpl extends ServiceImpl<IncomeExpenseRecordMapper, IncomeExpenseRecord>
    implements IncomeExpenseRecordService{
    @Autowired
    private IncomeExpenseRecordMapper incomeExpenseRecordMapper;

    @Override
    public List<IncomeExpenseDTO> getIncomeExpenseByStoreId(Long storeId) {
        return incomeExpenseRecordMapper.selectByStoreId(storeId);
    }
}




